package com.xy.exam.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.junit.Test;

import java.io.Serializable;

/**
 * @Author:徐莹
 * @Date:2025/04/13 11:17:12
 */
@Data
@Builder
@TableName("product")
public class Product implements Serializable {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private String name;
    private Float price;
    private Integer cid;
    public Product() {
    }

    public Product(Integer id, String name, Float price, Integer cid) {

        this.id = id;
        this.name = name;
        this.price = price;
        this.cid = cid;
    }

    public Integer getId() {
        return id;
    }

    public String getName() {
        return name;
    }

    public Float getPrice() {
        return price;
    }

    public Integer getCid() {
        return cid;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setPrice(Float price) {
        this.price = price;
    }

    public void setCid(Integer cid) {
        this.cid = cid;
    }
}
